<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<div class="wrapper">
    {% if next %}
{#    <form action="/users/login/?next={{ next }}" method="post">#}
        <form action="{% url 'users:login' next=next %}" method="post">
    {% else %}
{#         <form action="/users/login/" method="post">#}
        <form actio="{% url 'users:login' %}" method="post">
    {% endif %}
        {% csrf_token %}
        <div>
        用户名:<input type="text" name="username">
    </div>
    <div>
        密码:<input type="text" name="password">
      
    </div>
        <div>
            <input type="submit" value="登录">
        </div>
    </form>
</form>
</div>

{% if err %}
{{ err }}
{% endif %}
</body>
</html>
